package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * author: chenyu.wang
 * date: 2020-07-02 15:07
 * Description: 查看产品详情规格属性VO
 */
@Data
public class CommodityRegardAttrVO implements Serializable {

    @ApiModelProperty(value = "产品规格属性关联表id")
    private Long id;
    @ApiModelProperty(value = "商品id")
    private Long commodityId;
    @ApiModelProperty(value = "属性ids")
    private String attrIds;
    @ApiModelProperty(value = "税率 除以100")
    private Integer taxRate;
    @ApiModelProperty(value = "单价 不填，询价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;
    @ApiModelProperty(value = "批发价 不填，询价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal wholesalePrice;
    @ApiModelProperty(value = "库存")
    private Integer inventoryNumber;
    @ApiModelProperty(value = "尺寸 长*宽*高")
    private String commoditySize;
    @ApiModelProperty(value = "尺寸单位 0毫米、1厘米、2米")
    private Integer commoditySizeUnit;
    @ApiModelProperty(value = "商品单位表id")
    private Long commodityNnit;
    @ApiModelProperty(value = "商品单位名称")
    private String commodityNnitName;
    @ApiModelProperty(value = "库存预警")
    private Integer inventoryNumberWarning;
    @ApiModelProperty(value = "起批数量")
    private Integer batchNumber;
    @ApiModelProperty(value = "属性名称，以逗号隔开")
    private String atrrNames;
    @ApiModelProperty(value = "原价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal originalPrice;
}
